package web.req;

import common.consts.Consts;
import org.hibernate.validator.constraints.NotBlank;
import web.Request;

/**
 * Created by liuchang on 2015/6/23.
 */
public class CompanyRequest extends Request {

    @NotBlank(message = Consts.i18nKey.COMPANY_NAME_IS_REQUIRED)
    private String name;
    @NotBlank(message = Consts.i18nKey.COMPANY_ADDRESS_IS_REQUIRED)
    private String address;
    private String description;
    @NotBlank(message = Consts.i18nKey.COMPANY_TYPE_IS_REQUIRED)
    private String tradeCategory;
    @NotBlank(message = Consts.i18nKey.PROVINCE_IS_REQUIRED)
    private String province;
    @NotBlank(message = Consts.i18nKey.CITY_IS_REQUIRED)
    private String city;
    @NotBlank(message = Consts.i18nKey.DISTRICT_IS_REQUIRED)
    private String district;
    private Double longitude;
    private Double latitude;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTradeCategory() {
        return tradeCategory;
    }

    public void setTradeCategory(String kind) {
        this.tradeCategory = kind;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }
}
